<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/11/16
  Time: 15:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../css/news.css">

    <!--    页面加载时从上到下加载,所以，jQuery的js要放在所有js之前 -->
</head>

<body>

<div class="home">
    <div>
       <jsp:include page="top.jsp"></jsp:include>
        <div class="middle">
            <div>
                <div>
                    <div class="title">新闻动态</div>
                    <div>
                        <div>行业新闻</div>
                        <div>公司动态</div>
                        <div>餐饮知识</div>
                    </div>
                </div>
                <div class="content">
                    <div>
                       <c:forEach items="${newsModels}" var="model">
                           <div>
                               <div>
                                   <div><img src="../img/21.png" height="16" width="16"/></div>
                                   <div>${model.title}
                                   </div>
                               </div>
                               <div>${model.publishTime}</div>
                           </div>
                       </c:forEach>
                    </div>
                    <div id="page"></div>
                </div>
            </div>
        </div>
       <jsp:include page="foot.jsp"></jsp:include>
    </div>
</div>

</body>
</html>